﻿using System;

namespace DDDProjectSample.Domain.Repositories
{
    /// <summary>
    /// Contract for MemberRepository component
    /// </summary>
    public interface IMemberRepository : IRepository<Member>
    {
        /// <summary>
        /// Gets a member by its login
        /// </summary>
        /// <param name="login">Login of the member</param>
        /// <returns>The member, or null if no member exists with this login</returns>
        Member GetByLogin(string login);
    }
}
